package com.zyh.homework.test1;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import java.io.File;
import java.io.IOException;

/**
 * @Author zyh
 * @Date 2024/8/13 19:55
 * @Description
 */

public class Test5 {
    public static void main(String[] args) throws IOException {
        ObjectMapper mapper = new ObjectMapper();
        JsonNode jsonNode = mapper.readTree(new File("D:\\Code\\IDEA\\idea_projects\\JavaSE-plus\\day15-code\\src\\com\\zyh\\homework\\test1\\books.json"));
        for (JsonNode node : jsonNode) {
            System.out.println(node);
        }
    }
}
